package exercise3;

import java.util.Arrays;

import javax.swing.JOptionPane;;

public class NumberOfSort {
	public static void printNnmberOfSort(){
		String str = JOptionPane.showInputDialog("请输入三个整数,以空格形式分开：");
		String[] s = str.split(" ");
		Integer[] i = new Integer[3];
		for (int a = 0; a < s.length; a++) {
			i[a] = Integer.parseInt(s[a]);
		}
		Arrays.sort(i);
		JOptionPane.showMessageDialog(null,"排序后的整数为：\n"+Arrays.toString(i));
	}
}